Repository navigation
refactor(storyteller): own storyteller L0 prompts/rules and adopt Core chat window and request helpers - #24
Merged
Conversation
…e chat window and request helpers refactor: adopt Core APIs and extract storyteller prompt formatting - Route text, JSON, settings, request, and context access through the RimMindAPI facade (Text.TrOr, Json.*, Settings.IsConfigured, Request.ClearModCooldown, Context.RegisterScenario) instead of local helpers and legacy static calls. - Extract stateless prompt formatting from StorytellerMemory into a new StorytellerMemoryPromptFormatter, keeping the WorldComponent focused on storage and persistence. - Register storyteller_system and storyteller_rules L0 context providers with localized defaults, and add the corresponding English and Chinese prompt keys. - Rebase Window_StorytellerDialogue on RimMindChatWindowBase so in-flight requests are cancelled on close and late replies are dropped. - Delegate StorytellerResponseParserPure to Core JSON repair and pseudo function call parsing, removing the duplicated regex/repair logic. - Replace the manual instance field with WorldScopedComponentCache and mark PawnLookup/PawnLookupCore obsolete in favor of RimMindPawnLookup. - Opt storyteller requests out of the alive-colonist liveness gate. - Add adoption contract tests and expand Verse stubs to cover the chat window, JSON, and context registry surfaces.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves storyteller_system and storyteller_rules prompts and EN/ZH keys into RimMind-Storyteller; explicitly sets WithRequireAliveColonist(false); migrates Window_StorytellerDialogue onto Core RimMindChatWindowBase (fixing PostClose cancellation leak); extracts StorytellerMemoryPromptFormatter and adopts Core Json/Settings/Cache/TrOr helpers. Verified with 27/27 tests.